import axios from "axios";

export  function request(config : any) {
    const instance = axios.create({
        baseURL: 'http://localhost:8080',
        timeout: 100000,
    });

    instance.interceptors.request.use(config => {
        return config;
    }, error => { });

    instance.interceptors.request.use(res => {
        return res.data;
    }, error => { });

    return instance(config);
}
